import json

dic_01 = {"name": "admin", "age": 20, "sex": "male"}
print(dic_01, type(dic_01))
res_01 = json.dumps(dic_01)
print(res_01, type(res_01))
res_02 = json.loads(res_01)
print(res_02, type(res_02))
with open("../Enclosure/data_01.json", "w") as fp:
    json.dump(dic_01, fp)
with open("../Enclosure/data_01.json", "r") as fp:
    res_03 = json.load(fp)
print(res_03, type(res_03))
